package com.dc.aimc.gateway.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Data
@Configuration
@ConfigurationProperties(prefix = "spring.cloud.gateway")
public class RouteConfig {

    private List<RouteConfig.Route> routes;

    @Data
    public static class Route {
        private String id;
        private String uri;
        private List<String> predicates;
        private List<String> filters;
    }
}
